package com.xxx.dao;

import com.xxx.entity.Survey;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.entity.dto.SurveyDto;
import com.xxx.entity.query.SurveyQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxx
 * @since 2024-11-24
 */

@Mapper
public interface SurveyDao extends BaseMapper<Survey> {
    List<SurveyDto> selectByPage(@Param("current") Integer current,
                                      @Param("size") Integer size);
    List<SurveyDto> selectByCondition(SurveyQuery surveyDto);

    Map<String, Object> incomeAnalysis();
}
